<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base th:href="@{/}">
    <link rel="stylesheet" href="webjars/css/bootstrap.css">
    <link rel="stylesheet" href="webjars/css/bootstrap-table.css">
</head>
<body>
<div class="container">
    <a class="btn btn-success "th:href="@{/add}">添加</a>
    <table  class="table table-bordered">
        <tr>
            <td>编号</td>
            <td>策略名称</td>
            <td>所属年级</td>
            <td>是否公开</td>
            <td>操作</td>
        </tr>
        <tr th:each="r:${list}">
            <td th:text="${r.id}"></td>
            <td th:text="${r.company}"></td>
            <td th:text="${r.getResideId()}"></td>
            <td th:text="${r.name}"></td>
            <td>
                <a th:href="@{'/louyv/list?resideid='+${r.id}}">查看楼宇</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>